package org.geektimes.projects.user.validator.bean.validation;

import javax.validation.Constraint;
import java.lang.annotation.*;

@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = PasswordValidAnnotationValidator.class)
public @interface PasswordValid {
    String message() default "密码长度仅允许6—32位字符";
    int min() default 0;
    int max() default 1024;
}
